package com.symria.framework.util;

import javax.servlet.http.HttpServletRequest;

public class BeanRequestPicker<T> {
	private final Class<T> type;
	private HttpServletRequest request;
	private BeanConvent convent = new BeanConvent();
	public BeanRequestPicker(Class<T> type,HttpServletRequest request){
		this.type=type;
		this.request=request;
	}
	
	public <T> T handle(Class<T> type){
		return convent.toBean(request, type);
	}
}
